﻿@model article

@{
    var art = Model;
    ViewData["Title"] = $"{art.title}";
}

<div style="width:100%;text-align:center;height:50px;font-size:20px;color:#666;line-height:50px;">@art.title</div>

<div style="width:100%;padding-left:2rem;">

    <div style="width:100%;text-align:center;height:30px;line-height:30px;color:#666;"> 发布时间: @art.create_time.ToLocalTime().ToString("yyyy-MM-dd HH:mm")</div>
    <p style="line-height:200%;color:#AE685B;">
        关键字: @art.keywords
    </p>
</div>

<div style="width:100%;color:#AE685B;padding-top:20px;padding-left:2rem;">
    @Html.Raw(art.content)
</div>

<div class="row">
    <div class="col-md-6 text-left">
        @if (!string.IsNullOrWhiteSpace(art.previous_url))
        {
            <a href="@art.previous_url" target="_blank">上一篇</a>
        }
    </div>
    <div class="col-md-6 text-right">
        @if (!string.IsNullOrWhiteSpace(art.next_url))
        {
            <a href="@art.next_url" target="_blank">下一篇</a>
        }
    </div>
</div>